﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/LOSSite.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<DataAccessLayer.Models.Application>>" %>

<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="MenuList" runat="server">
    <% Html.RenderPartial("MenuList", Session["LoggedUser"]); %>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Greeting" runat="server">
    <% Html.RenderPartial("Greeting", Session["LoggedUser"]); %>
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="Content" runat="server">
    <form id="form1" runat="server">
    <table class="AppListTbl" >
        <tr>
            <th>
                Application ID
            </th>
            <th>
                Customer Name
            </th>
            <th>
                CreateDate
            </th>
            <th>
                Version
            </th>
        </tr>
        <% foreach (var item in Model)
           { %>
        <tr>
            <td>
                <%: Html.ActionLink(item.AppId.ToString(), "Index", "Application", new { applicationId = item.AppId }, null)%>
            </td>
            <td>
                <%: item.Customer.Name %>
            </td>
            <td>
                <%: item.CreateDate.ToString("dd/MM/yyyy") %>
            </td>
            <td>
                <%: item.Version.ToString("dd/MM/yyyy HH:mm:ss") %>
            </td>
        </tr>
        <% } %>
    </table>
    <p>
    <%= Html.ActionLink("Create New Application", "Create", null, new { @class="BtnSubmit" }) %>
    </p>
    </form>
</asp:Content>
